#ifndef __Palette_h__
#define __Palette_h__

namespace game{
    class Palette{
        private:
            static u8 maxPaletteId0;
            static u8 maxPaletteId1;
            
            bool screen;
            bool loaded;
            void* objPalette;
            u8 paletteid;
            u8 dualpaletteid;
        public:
            Palette(bool screen, void* objPalette);
            static u8 nextPalette(bool screen);
            static void setBgColor(u16 color);
            static s16 getcolor(u8 r, u8 g, u8 b);
            u8 getid();
            u8 getdualid();
            void load();
            void loaddual();
            bool isloaded();
    };
}
#endif
